<template>
	<view class="historical-data-contarinter">
		<contont-nav-bar></contont-nav-bar>
		<view class="historical-data-top">
			<!-- <inventory-list :List="historicalList" :loading="loading" @onDetails="onDetails" @onDropLoad="onDropLoad"></inventory-list> -->
			<!-- <inventory-list :List="historicalList" @onDetails="onDetails" @upCallback="upCallback" :upOption="upOption"></inventory-list> -->
			<view class="inventory-lists">
				<view class="inventory-top">
					<view class="num">序号</view>
					<view class="name">名称</view>
					<view class="keshi">科室</view>
					<view class="location">位置</view>
					<view class="species">消耗种类</view>
					<view class="time">时间</view>
					<view class="type">业务</view>
					<view class="porper">人员</view>
				</view>
				<view class="inventory-center">
					<!-- <scroll-view scroll-y="true" class="scroll-list" @scrolltolower="$emit('onDropLoad')"> -->
					<mescroll-uni  ref="mescrollRef" @init="mescrollInit" height="70.5vh" class="mescroll" @up="upCallback" :up="upOption" :down="downOption">
						<block v-for="(list,index) in historicalList" :key="index">
							<view>
								<view class="ic-item" v-if="list.datetime!==0" @tap="onDetails(index)">
									<view class="num">{{numIndex(index)}}</view>
									<view class="name">{{list.itemName}}</view>
									<view class="keshi">{{list.operatorDept}}</view>
									<view class="location">{{list.seatCode}}</view>
									<view class="species">{{list.itemTypeName}}</view>
									<view class="time">{{list.operTime}}</view>
									<view class="type">
										<text v-show="list.bizType==1" class="type-type" :class="{'orange':list.bizType==2,'blue':list.bizType==3}">上架</text>
										<text v-show="list.bizType==2" class="type-type" :class="{'orange':list.bizType==2,'blue':list.bizType==3}">领用</text>
										<text v-show="list.bizType==3" class="type-type" :class="{'orange':list.bizType==2,'blue':list.bizType==3}">退回</text>
										<image v-show="list.bizType==2" class="type-img" src="../../static/images/inventory/duobianx1.png" mode="widthFix"></image>
										<image v-show="list.bizType==3" class="type-img" src="../../static/images/inventory/duobianx2.png" mode="widthFix"></image>
									</view>
									<view class="porper">{{list.operatorName}}</view>
								</view>
								<view v-else class="ic-item"></view>
							</view>
						</block>
						<!-- <block v-if="loading!=''">
							<view v-show="List.length>=11" class="load-more">{{loading}}</view>
						</block> -->
					</mescroll-uni>	
					<!-- </scroll-view> -->
				</view>
			</view>
			<view class="historical-data-bottom">
				<view class="contont">
					<view class="v2">
						<image class="chaxun-img" @tap="onFindData" src="../../static/images/inventory/chaxun.png" mode="widthFix"></image>
						<view class="bottom-c">历史数据</view>
						<view class="back-btn" @tap="onBack">
							<image class="back-img" src="/static/images/group/back.png" mode="widthFix"/>
							<text class="back-text">返回</text>
						</view>
					</view>
				</view>
			</view>	
		</view>	
		<!-- 详情弹出层 -->
		<uni-popup ref="popup" type="center">
			<view class="popup-push">
				<view class="nav-title">{{mContont.itemName}}</view>
				<view class="nav-contont">
					<view v-show="mContont.bizType==1" class="content-text">上架</view>
					<view v-show="mContont.bizType==2" class="content-text">领用</view>
					<view v-show="mContont.bizType==3" class="content-text">退回</view>
					<view class="content-end">{{mContont.operatorName}}</view>
					<view class="content-date">{{mContont.operTime}}</view>
				</view>
				<view class="nav-bottom">
					<view class="left-tupiao">
					</view>
					<view class="center-btn" @tap="onClose">
						<button class="btn" type="default">关闭</button>
					</view>
					<view class="kong"></view>
				</view>
			</view>
		</uni-popup>
		<!-- 筛选弹出层 -->
		<uni-popup ref="popup-datafind" type="center" :animation="false">
			<view class="find-data">
				<view class="top">
					<view class="top-l">
						<text class="top-text">筛选</text>
					</view>
					<image class="top-r" @tap="Close" src="../../static/guanbihei.png" mode="widthFix"></image>
				</view>
				<view class="nav">
					<view class="nav-text">科室:</view>
					<view class="input-box">
						<input type="text" class="nav-input" v-model="department" />
					</view>
					<view class="nav-text">人员:</view>
					<view class="input-box">
						<input type="text" class="nav-input" v-model="personnel" />
					</view>
					<view class="nav-text">耗材种类:</view>
					<view class="input-box">
						<input type="text" class="nav-input" v-model="types" />
						<!-- <image class="drop-down" src="../../static/zhankai.png" mode="widthFix"></image> -->
					</view>
				</view>
				<view class="time-list">
					<view class="time-text">时间段:</view>
					<view class="time-selector">
						<view class="selector">
							<view class="data-text" @tap="dateVisible1=true">{{dateValue1}}</view>
							<!-- <view class="data-text">2020-12-12</view> -->
							<view class="line"></view>
							<view class="data-text" @tap="timeVisible1=true">{{timeValue1}}</view>
							<!-- <view class="data-text">15:15:15</view> -->	
						</view>
						<text class="text">至</text>
						<view class="selector">
							<view class="data-text" @tap="dateVisible2=true">{{dateValue2}}</view>
							<view class="line"></view>
							<view class="data-text" @tap="timeVisible2=true">{{timeValue2}}</view>
						</view>
					</view>
				</view>
				<view class="search">
					<button class="search-btn" type="default" @tap="onSearch">搜索</button>
				</view>	
				<!-- 前日期 -->
				<w-picker
					:visible.sync="dateVisible1"
					mode="date" 
					:startYear="startYear" 
					:endYear="endYear"
					:value="dateValue1"
					:current="false"
					fields="day"
					@confirm="onBeforeDate($event,'date1')"
					@cancel="onCancel"
					:disabled-after="false"
					ref="date1"
				></w-picker>
				<!-- 前时间 -->
				<w-picker
					:visible.sync="timeVisible1"
					mode="time" 
					:value="timeValue1"
					:current="true"
					:second="true"
					@confirm="onBeforeTime($event,'time1')"
					@cancel="onCancel"
					ref="time1" 
				></w-picker>
				<!-- 后日期 -->
				<w-picker
					:visible.sync="dateVisible2"
					mode="date" 
					:startYear="startYear"
					:endYear="endYear"
					:value="dateValue2"
					:current="true"
					fields="day"
					@confirm="onAfterDate($event,'date2')"
					@cancel="onCancel"
					:disabled-after="false"
					ref="date2"
				></w-picker>
				<!-- 后时间 -->
				<w-picker
					:visible.sync="timeVisible2"
					mode="time" 
					:value="timeValue2"
					:current="true"
					:second="true"
					@confirm="onAfterTime($event,'time2')"
					@cancel="onCancel"
					ref="time2" 
				></w-picker>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import { getHistorical, inventoryOperation, abnormalStock } from '../../utils/api.js'
	import uniPopup from '@/components/uni-popup/uni-popup.vue'
	// import InventoryList from '../../components/inventory/inventory-list.vue'
	import ContontNavBar from '../../components/common/contont-nav-bar.vue'
	import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
	export default {
		mixins: [MescrollMixin],
		components: {
			ContontNavBar,
			// InventoryList,
			uniPopup
		},
		data() {
			return {
				isShowNoMore:false,
				downOption:{
					use:false
				},
				upOption:{
					page:{
						num : 1 ,
						size : 11 ,
						time : null
					},
					auto: false,
					noMoreSize: 11,
					offset:400,
					textNoMore:'我是有底线的 >_<'  
				},
				isFy:false,
				mContont:{},
				loading: '上拉记载更多',
				department: '',  //科室输入框内容
				personnel: '', //人员输入框内容
				types: '', //耗材种类输入框内容
				dateVisible1:false,
				timeVisible1:false,
				dateVisible2:false,
				timeVisible2:false,
				dateValue1: '',
				timeValue1: '',
				dateValue2: '',
				timeValue2: '',
				startYear: '',
				endYear:'',
				historicalList: [],
				historList:[],
				pageNum:1,
				FyPageNum:1,
				pageSize:11
			}
		},
		computed:{
			numIndex: function() {
				return function(index){
					let i = index+1
					if(i<10){
						return '0'+i
					}else{
						return i
					}
				}
			}
		},
		onLoad() {
			this.loadHisData()
			// this.loadList()
		},
		methods: {
			loadHisData(){
				let tokenData = uni.getStorageSync('lastToken');			
				getHistorical({
					startDate: '',//开始时间
					endDate: '',//结束时间
					pageNum: this.upOption.page.num,//页码
					pageSize: this.pageSize,//单页记录数
					operatorName: '',//操作人登录名
					deptName: '',//科室名称
					itemName: '',//耗材名称
					terminalId:tokenData.terminalId
				}).then(res=>{
					console.log('历史记录操作',res.data)
					this.historList = res.data.list
					this.historicalList = this.historList.filter(item=>item)
					this.pageNum += 1
					// this.loadList()
				})
				
			},
			// loadList(){
			// 	console.log(this.historicalList.length);
			// 	if(this.historicalList.length<10){
			// 		for(let i=this.historicalList.length;i<10;i++){
			// 			this.historicalList[i]={datetime:0}
			// 		}
			// 	}
			// },
			onDetails(index) {   //信息详情
				console.log('onDetails'+index);
				
				this.mContont = this.historicalList[index]
				//打开弹出层
				this.$refs.popup.open()
			},
			onClose(){
				//关闭信息详情弹出层
				this.mContont = {}
				this.$refs.popup.close()
			},
			onFindData() {  //查询弹出层
				let dataObj = this.forMart()
				console.log(dataObj);
				this.dateValue1 = `${dataObj.year}-${dataObj.oldMonth}-${dataObj.day}`
				// this.dateValue1 = `2021-03-30`
				this.timeValue1 = `${dataObj.hour}:${dataObj.minute}:${dataObj.seconds}`
				this.dateValue2 = `${dataObj.year}-${dataObj.month}-${dataObj.day}`
				this.timeValue2 = `${dataObj.hour}:${dataObj.minute}:${dataObj.seconds}`
				this.startYear = `${dataObj.year}`
				this.endYear = `${dataObj.year}`
				this.personnel = ""
				this.department = ""
				this.types = ""
				// this.loading = '无更多内容'
				this.$refs['popup-datafind'].open()
			},
			Close() { //关闭查询弹出层
				this.$refs['popup-datafind'].close()
			},
			upCallback(e){
				console.log(e);
				let tokenData = uni.getStorageSync('lastToken');
				if(this.isFy){
					getHistorical({
						startDate: `${this.dateValue1} ${this.timeValue1}`,//开始时间
						endDate: `${this.dateValue2} ${this.timeValue2}`,//结束时间
						pageNum: e.num,//页码
						pageSize: this.pageSize,//单页记录数
						operatorName: this.personnel,//操作人登录名
						deptName: this.department,//科室名称
						itemName: this.types,//耗材名称
						terminalId:tokenData.terminalId
					}).then(res=>{
						this.mescroll.endSuccess(res.data.list.length);
						console.log('历史记录操作',res.data)
						res.data.list.map(item=>{
							this.historList.push(item)
						})
						this.historicalList = this.historList.filter(item=>item)
					}).catch(()=>{
						//联网失败, 结束加载
						this.mescroll.endErr();
					})
				}else{
					getHistorical({
						startDate: '',//开始时间
						endDate: '',//结束时间
						pageNum: e.num,//页码
						pageSize: this.pageSize,//单页记录数
						operatorName: '',//操作人登录名
						deptName: '',//科室名称
						itemName: '',//耗材名称
						terminalId:tokenData.terminalId
					}).then(res=>{
						this.mescroll.endSuccess(res.data.list.length);
						console.log('历史记录操作',res.data)
						res.data.list.map(item=>{
							this.historList.push(item)
						})
						this.historicalList = this.historList.filter(item=>item)					
					}).catch(()=>{
						//联网失败, 结束加载
						this.mescroll.endErr();
					})
				}
			},
			// onDropLoad() {   //下拉加载
			// 	console.log('11');
			// 	if(this.loading==='加载中...'){
			// 		return
			// 	}else if(this.loading==='无更多内容'){
			// 		return
			// 	}
			// 	this.loading = '加载中...'
			// 	let tokenData = uni.getStorageSync('lastToken');
			// 	if(this.isFy){
			// 		getHistorical({
			// 			startDate: `${this.dateValue1} ${this.timeValue1}`,//开始时间
			// 			endDate: `${this.dateValue2} ${this.timeValue2}`,//结束时间
			// 			pageNum: this.FyPageNum,//页码
			// 			pageSize: this.pageSize,//单页记录数
			// 			operatorName: this.personnel,//操作人登录名
			// 			deptName: this.department,//科室名称
			// 			itemName: this.types,//耗材名称
			// 			terminalId:tokenData.terminalId
			// 		}).then(res=>{
			// 			if(res.data.list.length>0){
			// 				console.log('历史记录操作',res.data)
			// 				res.data.list.map(item=>{
			// 					this.historList.push(item)
			// 				})
			// 				this.historicalList = this.historList.filter(item=>item)
			// 				this.loading = '上拉加载更多'
			// 				this.FyPageNum += 1
			// 			}else{
			// 				this.loading = '无更多内容'
			// 			}
			// 		})
			// 	}else{
			// 		getHistorical({
			// 			startDate: '',//开始时间
			// 			endDate: '',//结束时间
			// 			pageNum: this.pageNum,//页码
			// 			pageSize: this.pageSize,//单页记录数
			// 			operatorName: '',//操作人登录名
			// 			deptName: '',//科室名称
			// 			itemName: '',//耗材名称
			// 			terminalId:tokenData.terminalId
			// 		}).then(res=>{
			// 			if(res.data.list.length>0){
			// 				console.log('历史记录操作',res.data)
			// 				res.data.list.map(item=>{
			// 					this.historList.push(item)
			// 				})
			// 				this.historicalList = this.historList.filter(item=>item)
			// 				this.loading = '上拉加载更多'
			// 				this.pageNum += 1
			// 			}else{
			// 				this.loading = '无更多内容'
			// 			}
			// 		})
			// 	}
				
			// 	// this.pageNum+=1
			// },
			onSearch() { //查询结果
				this.isFy = true
				let tokenData = uni.getStorageSync('lastToken');
				this.upOption.page.num = 1
				getHistorical({
					startDate: `${this.dateValue1} ${this.timeValue1}`,//开始时间
					endDate: `${this.dateValue2} ${this.timeValue2}`,//结束时间
					pageNum: this.upOption.page.num,//页码
					pageSize: this.pageSize,//单页记录数
					operatorName: this.personnel,//操作人登录名
					deptName: this.department,//科室名称
					itemName: this.types ,//耗材名称					
					terminalId:tokenData.terminalId
				}).then(res=>{
					console.log('查询历史记录操作',res.data)
					this.historicalList = res.data.list
					// this.loadList()
					this.FyPageNum += 1
					this.Close()
				})
			},
			radioChange(e){
				this.videoType = e.detail.value
			},
			onBeforeDate(res,type){ //前日期
				this.dateValue1= res.result
			},
			onBeforeTime(res,type){ //前时间
				this.timeValue1= res.result
			},
			onAfterDate(res,type){ //后日期
				this.dateValue2= res.result
			},
			onAfterTime(res,type){ //后时间
				this.timeValue2= res.result
			},
			onCancel(){},
			onBack() {
				uni.redirectTo({
					url: '/pages/index/index'
				})
			},
			forMart(){
				let dates = new Date()
				let year = dates.getFullYear()
				let oldMonth =  dates.getMonth()
				let month = dates.getMonth() + 1
				let day = dates.getDate()
				let hour = dates.getHours() < 10 ? "0" + dates.getHours() : dates.getHours()
				let minute = dates.getMinutes() < 10 ? "0" + dates.getMinutes() : dates.getMinutes()
				let seconds = dates.getSeconds() < 10 ? "0" + dates.getSeconds() : dates.getSeconds()
				month >= 1 && month <= 9 ? (month = "0" + month) : ""
				oldMonth >= 1 && oldMonth <= 9 ? (oldMonth = "0" + oldMonth) : ""
				day >= 0 && day <= 9 ? (day = "0" + day) : ""
				// return year+'-'+month+'-'+day+' '+hour+':'+minute+':'+seconds
				return {	
					'year':year,
					'month':month,
					'day':day,
					'hour':hour,
					'minute':minute,
					'seconds':seconds,
					'oldMonth':oldMonth
				}
			}
		}
	}
</script>

<style scoped lang="less">
.historical-data-contarinter{
	background: #F1F1F1;
	height: 100vh;
	position: fixed;
}	
.historical-data-top{
	box-sizing: border-box;
	// margin: 38rpx 36rpx 32rpx 32rpx;
	margin: 2.4vh 36rpx 3.15vh 32rpx;
	// width: 2802rpx;
	// height: 1304rpx;
	width: 97.5vw;
	height: 85vh;
	border-radius: 32rpx;
	border: 2rpx solid #4F9AFF;
	box-shadow: 0px 3px 8px 0px rgba(3, 28, 62, 0.24);
	position: relative;
	.historical-data-bottom{
		position: absolute;
		right: 0;
		left: 0;
		bottom: 0;
		// height: 138rpx;
		height: 9vh;
		background: #4F9AFF;
		border-radius: 0px 0px 10px 10px;
	}	
}
.find-data{
	background: #FFFFFF;
	// width: 886rpx;
	width: 30.76vw;
	height: 100%;
	position: fixed;
	right: 0;
	top: 0;
	.top{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 51rpx 0 42rpx 0;
		padding-right: 66rpx;
		box-sizing: border-box;
		.top-l{
			background: ;
			display: flex;
			align-items: center;
			justify-content: center;
			// width: 226rpx;
			// height: 87rpx;
			width: 8vw;
			height: 5.63vh;
			background: linear-gradient(180deg, rgba(114, 180, 255, 0.9), rgba(73, 153, 235, 0.9), rgba(43, 125, 209, 0.9));
			box-shadow: 0px 0px 2px 0px rgba(27, 67, 140, 0.64);
			border-radius: 0 87rpx 87rpx 0;
			.top-text{
				font-size: 41rpx;
				color: #FFFFFF;
				letter-spacing: 16rpx;
			}
		}
		.top-r{
			// width: 68rpx;
			// height: 68rpx !important;
			width: 2.37vw;
			height: 4.45vh !important;
		}
	}
	.nav{
		// width: 790rpx;
		width: 27.44vw;
		height: 42.5vh;
		margin: 0 48rpx 26rpx 48rpx;
		border-radius: 20rpx;
		background: #F1F9FF;
		box-sizing: border-box;
		.nav-text{
			font-size: 34rpx;
			color: #777777;
			// margin: 0 0 28rpx 30rpx;
			margin: 0 0 1.83vh 30rpx;
			&:first-child{
				// padding-top: 34rpx;
				padding-top: 2.4vh;
			}
		}
		.input-box{
			display: flex;
			justify-content: center;
			// margin-bottom: 51rpx;
			margin-bottom: 3.26vh;
			position: relative;
			&:last-child{
				// margin-bottom: 34rpx;
				margin-bottom: 2.4vh;
			}
		}
		.nav-input{
			background: #FFFFFF;
			// width: 588rpx;
			// height: 80rpx;
			width: 20.42vw;
			height: 5.23vh;
			border: 4rpx solid #4F9AFF;
			border-radius: 75rpx;
			font-size: 34rpx;
			color: #000;
			padding: 0 80rpx 0 50rpx;	
			box-sizing: border-box;
		}
		.drop-down{
			width: 35rpx;
			height: 17rpx;
			position: absolute;
			top: 50%;
			right: 140rpx;
			transform: translateY(-50%);
		}
	}
	.time-list{
		box-sizing: border-box;
		// width: 790rpx;
		width: 27.44vw;
		// height: 345rpx;
		height: 24.5vh;
		margin: 0 48rpx 120rpx 48rpx;
		padding: 32rpx 34rpx;
		border-radius: 20rpx;
		background: #F1F9FF;
		.time-text{
			font-size: 34rpx;
			color: #777777;
		}
		.time-selector{
			padding: 34rpx 0 0 0;
			display: flex;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
			.selector{
				box-sizing: border-box;
				// width: 292rpx;
				// height: 210rpx;
				width: 11.14vw;
				height: 13.73vh;
				border: 4rpx solid #4F9AFF;
				background: #FFFFFF;
				border-radius: 24rpx;
				padding: 0 34rpx;
				text-align: center;
				.data-text{
					font-size: 35rpx;
					color: #777777;
					// margin: 27rpx 0 27rpx 0;
					margin: 1.7vh 0 1.7vh 0;
					font-weight: 400;
				}
				.line{
					width: 100%;
					height: 4rpx;
					background: #4F9AFF;
				}
			}
			.text{
				font-size: 34rpx;
				color: #777777;
			}
		}
	}
	.search{
		display: flex;
		align-items: center;
		justify-content: center;
		.search-btn{
			display: flex;
			align-items: center;
			justify-content: center;
			// width: 478rpx;
			// height: 110rpx;
			width: 16.67vw;
			height: 7.19vh;
			background: #4F9AFF;
			color: #FFFFFF;
			font-size: 41rpx;
			border-radius: 110rpx;
			letter-spacing: 5rpx;
		}
	}	
	
}

.contont{
	height: 100%;
	box-sizing: border-box;
	width: 100%;
	padding: 0 60rpx;
	.v2{
		height: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;		
	}
	.chaxun-img{
		width: 250rpx;
		height: 88rpx;
		margin-right: 32rpx;
	}
	.bottom-c{
		width: 33.3%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 52rpx;
		color: #FFFFFF;
		letter-spacing: 5rpx;
		margin: 0 !important;
	}
	.back-btn{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 250rpx;
		height: 88rpx;
		background: #FFFFFF;
		border-radius: 88rpx;
		.back-img{
			width: 48rpx;
			height: 40rpx;
			margin-right: 16rpx;
		}
		.back-text{
			font-size: 40rpx;
			color: #4F9AFF;
		}
	}
	
}

.popup-push{
	// width: 2400rpx;
	// height: 1316rpx;
	width: 83.3vw;
	height: 86vh;
	background: #FFFFFF;
	border-radius: 20rpx;
	position: relative;
	.nav-title{
		width: 100%;
		// height: 132rpx;
		height: 8.63vh;
		border-radius: 20rpx 20rpx 0 0;
		background: #4F9AFF;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 48rpx;
		color: #FFFFFF;
	}
	.nav-contont{
		width: 100%;
		padding: 48rpx 56rpx 0 56rpx;
		box-sizing: border-box;
		.content-text{
			font-size: 40rpx;
			text-indent: 2em;
			color: #515151;
		}
		.content-end{
			display: flex;
			justify-content: flex-end;
			margin-top: 44rpx;
			font-size: 40rpx;
			color: #777777;
		}
		.content-date{
			display: flex;
			justify-content: flex-end;
			margin-top: 44rpx;
			font-size: 36rpx;
			color: #777777;
		}
	}
	.nav-bottom{
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		// height: 200rpx;
		height: 13.1vh;
		padding: 0 88rpx;
		display: flex;
		align-items: center;
		flex: 1;
		justify-content: space-between;
		border-top: 2rpx solid #EEEEEE;
		box-sizing: border-box;
		.left-tupiao{
			display: flex;
			align-items: center;
			justify-content: flex-start;
			width: 33%;
			height: 100%;
			.tupiao{
				width: 44rpx;
				height: 44rpx;
				margin-right: 16rpx;
			}
			.text{
				font-size: 44rpx;
				color: #FF4F4F;
			}
		}
		.center-btn{
			width: 33%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			.btn{
				display: flex;
				align-items: center;
				justify-content: center;
				width: 346rpx;
				height: 96rpx;
				font-size: 48rpx;
				color: #FFFFFF;
				background: #4F9AFF;
				border-radius: 96rpx;
			}
		}
		.kong{
			width: 33%;
			height: 100%;
		}
	}
}
.orange{
	color: #FA8647;
}
.blue{
	color: #4F9AFF;
}
.scroll-list{
	height: 100%;
}
.inventory-lists{
	.inventory-top{
		width: 100%;
		// height: 84rpx;
		height: 5.5vh;
		background: #D4E6FF;
		border-radius: 32rpx 32rpx 0px 0px;
		display: flex;
		align-items: center;
		font-size: 36rpx;
		color: #4F9AFF;
		text-align: center;
		box-sizing: border-box;
	}
	.inventory-center{
		width: 100%;
		// height: 1078rpx;
		height: 70.5vh;
		background: #FFFFFF;
		// overflow-y: auto;
		box-sizing: border-box;
		// -webkit-overflow-scrolling: touch;
		// //当手指从触摸屏移开，会保持滑动一段距离
		// -webkit-overflow-scrolling: auto; // ios默认属性
		// //当手指从触摸屏移开，滚动立即停止
		.ic-item{
			width: 100%;
			// height: 100rpx;
			height: 6.32vh;
			display: flex;
			align-items: center;
			font-size: 40rpx;
			color: #515151;
			text-align: center;
			&:nth-child(2n){
				background: #E8F2FF;
			}
		}
	}
	.num{
		// width: 140rpx;
		// margin-right: 40rpx;
		    width: 4.8vw;
		    margin-right: 1.4vw;
	}
	.name{
		display: flex;
		justify-content: flex-start;
		flex-direction: row;
		// width: 700rpx;
		// margin-right: 40rpx;
		width: 24vw;
		margin-right: 1.4vw;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	
	}
	.keshi{
		// width: 250rpx;
		// margin-right: 40rpx;
		width: 8.5vw;
		margin-right: 1.4vw;
	}
	.location{
		// width: 360rpx;
		// margin-right: 40rpx;
		width: 12.5vw;
		margin-right: 1.4vw;
	}
	.species{
		// width: 270rpx;
		// margin-right: 40rpx;
		width: 9.5vw;
		margin-right: 1.4vw;
	}
	.time{
		// width: 440rpx;
		// margin-right: 40rpx;
		width: 15.3vw;
		margin-right: 1.4vw;
	}
	.type{
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		// width: 160rpx;
		// margin-right: 40rpx;
		width: 5.5vw;
		margin-right: 1.4vw;
		.type-type{
			font-size: 40rpx;
			margin-left: 20rpx;
		}
		.type-img{
			width: 42rpx;
			height: 36rpx;
		}
	}
	.porper{
		// width: 250rpx;
		width: 8vw;
	}
}

</style>
